package com.xy.transfer.service.impl;

import com.xy.transfer.dao.AccountDao;
import com.xy.transfer.entity.Account;
import com.xy.transfer.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AccountServiceImpl implements AccountService {
    @Autowired
    AccountDao accountDao;

    public Account getAccInfo(String accNo) {
        return accountDao.selectByPrimaryKey(accNo);
    }
}
